package com.yunpeng.dynamic.page.start;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextClosedEvent;

/**
 * CloseListener
 *
 * @author : Moore(hemw)
 * @date : 2020-05-07
 */
public class CloseListener implements ApplicationListener<ContextClosedEvent> {

    /**
     * 日志对象
     */
    private static final Logger LOGGER = LoggerFactory.getLogger(CloseListener.class);

    @Override
    public void onApplicationEvent(ContextClosedEvent event) {
        LOGGER.info("程序停止");
    }
}